<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="java.io.File"%>
<%
        String serverName = request.getServerName();
        String imagePath = "images/" + serverName;
		
		File file = new File(application.getRealPath(imagePath) + "/ibroker-logo.gif");
				
		if(!file.exists())
		{imagePath = "images/default";}

%>


<html>
  <head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<link rel="stylesheet" type="text/css" href="styleSheets/iservices.css" />
  </head>
  
  <body background="<%=imagePath%>/grey-bg.gif">
       <table border="0" width="100%" id="iLinkTable">				
			<tr>
				<td class="black-headertext"><bean:message key="label.ilink"/></td>
				<td class="black-headertext"><bean:message key="label.head.forward"/></td>
				<td class="black-headertext"><bean:message key="label.tag.access"/></td>
				<td class="black-headertext"><bean:message key="label.action"/></td>					
			</tr>
			<% int i=0;%>
			<bean:define id="ilinks1" name="configData" property="ilink"/>						
			<logic:iterate id="ilink2" name="ilinks1">
				<tr id='row<%=i%>'>
					<td class="black-smalltext"><a href='<bean:write name="ilink2" property="ilink"/>' target="_blank" class="link-nounderline"><bean:write name="ilink2" property="ilink"/></a></td>
					<td class="black-smalltext"><bean:write name="ilink2" property="forward"/></td>
					<td class="black-smalltext">
						<logic:equal name="ilink2" value="true" property="public"><bean:message key="label.tag.public"/></logic:equal>
						<logic:equal name="ilink2" value="false" property="public"><bean:message key="label.tag.private"/></logic:equal>
					</td>
				
					<td class="blue-smalltext" valign="top">
						<a style="cursor: pointer;color: #0000ff;" onclick="parent.editForward('<bean:write name="ilink2" property="ilink"/>', '<bean:write name="ilink2" property="forward"/>' ,'<bean:write name="ilink2" property="public"/>', 'row<%=i%>'); parent.focusOnEdit()"><bean:message key="label.edit"/></a>&nbsp;&nbsp;
						<a style="cursor: pointer;color: #0000ff;" onclick="parent.delForward('<bean:write name="ilink2" property="ilink"/>', 'row<%=i++%>');"><bean:message key="label.delete"/></a>
					</td>
				</tr>
			</logic:iterate>
		</table>
  </body>
</html>
